import { ApiPath } from '../const';
import { get, request } from '../request';

const Base = '/books';

/**
 * 获取账单列表
 * @param params
 * @returns
 */
export function getBooksList(params = {}) {
  return get(Base + ApiPath.LIST, params);
}

/**
 * 添加账单数据
 * @param data
 */
export function addBooks(data = {}) {
  return request(Base + ApiPath.INSERT, 'POST', { data });
}
